package ua.net.gm.server.walker;

import ua.net.gm.server.primitives.Point;

/**
 *
 * @author Yason
 */
public class WalkerJump implements IWalkerMove
{
    private final int distX, distY;

    public WalkerJump(int distX, int distY)
    {
        this.distX = distX;
        this.distY = distY;
    }

    @Override
    public Point getNextPosition(IWalker walker)
    {
        return new Point(walker.getPosition().getX() + distX, walker.getPosition().getY() + distY);
    }

    public int getDistanceX()
    {
        return distX;
    }

    public int getDistanceY()
    {
        return distY;
    }
}
